Skip to content

fix(runtime): disable Wasm tier-up for Node TS runners on Linux x86_64 - #9212

Open
loopx-agent wants to merge 2 commits into
mainfrom
codex/fix-linux-x86-wasm-stdio-20261121
Open

loopx-agent wants to merge 2 commits into
mainfrom
codex/fix-linux-x86-wasm-stdio-20261121

Conversation

@loopx-agent

Copy link
Copy Markdown
Collaborator

Summary

  • Add node_typescript_flags() in loopx/control_plane/runtime/node_probe.py returning ("--liftoff-only", "--no-wasm-tier-up", "--no-wasm-dynamic-tiering") on Linux x86_64/amd64 (empty tuple on other platforms/architectures).
  • Wire *node_typescript_flags() into Node --experimental-strip-types invocation sites across loopx/control_plane/ (TCP + stdio effect runtime, host process transport, delegation preview, remote authority probe, scheduler ack, state recovery), loopx/entrypoint.py, loopx/extensions/turn_host.py, and loopx/usage_ping.py.
  • Root cause: On Linux x86_64 Node v24.21.0 running Amaro's Wasm-based --experimental-strip-types compiler, V8 Wasm dynamic tiering crashes inside ThreadIsolation::StartOfJitAllocationAt (Runtime_WasmTriggerTierUp -> StackFrameIterator::Advance -> GcSafeFindCodeForInnerPointer). Disabling Wasm tier-up + dynamic tiering (--liftoff-only --no-wasm-tier-up --no-wasm-dynamic-tiering) eliminates the crash without modifying the pinned node binary.
  • Add unit coverage in tests/control_plane/test_effect_runtime_node_probe.py and align CLI argv expectations in tests/control_plane/test_source_cli_entrypoint.py.

Verification

  • Mac (origin/main worktree):
    • pytest -q tests/control_plane/test_effect_runtime_node_probe.py tests/control_plane/test_effect_runtime_compile_cache.py tests/control_plane/test_effect_runtime_listener_startup.py tests/control_plane/test_source_cli_entrypoint.py: 88 passed
    • pytest -q benchmark/tests/test_proxy_order.py benchmark/tests/test_shared_codex_runtime.py benchmark/tests/test_task_entry.py: 184 passed, 126 skipped
    • pytest -q tests/capabilities/test_provider_gateway_proxy.py tests/control_plane/test_benchmark_planning_batch.py: 9 passed (test_original_task_entry.py failed pre-existing 10/10 identically on unmodified origin/main d28ec76f42)
    • ruff check on all 12 changed files: All checks passed!
    • mypy --follow-imports=silent on 9 typed files: Success: no issues found in 9 source files (excluding delegation_preview_transport.py, which has 13 preexisting untyped lines outside the diff)
    • loopx check --scan-path ... on all 12 changed files: ok=true, errors=0, public_boundary_scan.ok=true
    • loopx canary premerge --from-git-diff --git-diff-base origin/main: gate.status=passed (direct_checks 4/4, python_compile 1/1, catalog_canaries 10/10, risk_profile_smokes 8/8)
  • Debian 13 x86_64 VM (node v24.21.0, untouched binary):
    • Standalone loopx todo plan over stdio: 10/10 passed (vs 2/3 bare, 5/8 --wasm-jitless)
    • test_benchmark_planning_batch.py (file/sqlite x fresh/lost-response): 4 passed

Add node_typescript_flags() in loopx.control_plane.runtime.node_probe and wire it into all Node --experimental-strip-types launch paths. On Linux x86_64/amd64, disabling TurboFan Wasm tier-up and dynamic tiering (--liftoff-only --no-wasm-tier-up --no-wasm-dynamic-tiering) prevents fatal V8 ThreadIsolation JIT range crashes during Amaro TypeScript stripping under Node 24.

Signed-off-by: LoopX Agent <[email protected]>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

Reviewer: model_agent · Gemini · Google DeepMind · self_reported

English verdict: REQUEST_CHANGES

动机 / Motivation

针对 9212@4783afaf6be3ffb52f7e07e5101efd279b3fa083(exact head 4783afaf6be3ffb52f7e07e5101efd279b3fa083):运行在 Linux x86_64/amd64(特别是 QEMU/TCG 或开启 Linux PKU)上的操作者与自动化 Goal/Turn 调度器在执行 loopx CLI、Effect runtime、调度器随访或 ZCode Goal 宿主机时会触发该问题。修改前所有 Node 24 直接执行 TypeScript 的子进程都会开启 TurboFan Wasm 分层编译从而在 V8 ThreadIsolation 阶段崩溃并中断任务;修改后 10 个已接入的 Python 启动点在 Linux x86_64 上自动附加 --liftoff-only --no-wasm-tier-up --no-wasm-dynamic-tiering(非 Linux 平台保持空元组),但通过安装态 POSIX CLI 入口(scripts/loopx:74)触发的原生调度器随访仍漏传这些标志。

本 PR 在效果上集中封装了 node_typescript_flags() 并保护了 9 个 Python 模块中的 10 处启动点且保持 macOS/Windows/arm64 零变化,但未覆盖绕过 Python 的主 POSIX 启动器 scripts/loopx:74 以及 zcode_goal_mode、semantics/production.py 与 control_plane/testing/ 入口。本 PR 不修改 Node 版本探测、Windows PowerShell 启动器 scripts/loopx.ps1、Worker.execArgv(已实测 Node 会拒绝在 Worker execArgv 中传递进程级 Wasm 标志)或纯文档示例。

改动思路 / Approach

本 PR 在 loopx/control_plane/runtime/node_probe.py 引入 node_typescript_flags(*, system=None, machine=None),仅在 linux + x86_64|amd64 条件下返回 --liftoff-only --no-wasm-tier-up --no-wasm-dynamic-tiering,其余平台返回 (),从而在不污染全局 NODE_OPTIONS 的前提下为子进程定向注入 V8 稳态参数。

node_probe.node_typescript_flags() 作为单一平台判定边界归属合理,非 Linux 平台返回空元组零开销,且 effect_runtime_compile_cache.ts 的 Worker 会安全继承主进程 V8 初始化配置而不能在 Worker execArgv 中传入进程级 Wasm 标志。我们在本地 Node v24.21.0 中实测证实,给 new Worker(..., { execArgv }) 显式传入这 3 个标志会同步抛出 Initiated Worker with invalid execArgv flags,因此保留 effect_runtime_compile_cache.ts:86 不改是正确的。

关于当前边界:已建立清晰的核心判定函数与 10 处 Python 启动点,但作为全路径修复仍遗漏 POSIX 启动器 scripts/loopx:74、zcode_goal_mode、semantics/production.py 与 control_plane/testing/ 入口,需补齐上述调用链与跨平台验证后再合入。

具体改动 / Changes

本次共涉及 12 个文件(+138/-7),我们在独立只读 worktree 对提交头 4783afaf6be3ffb52f7e07e5101efd279b3fa083 完成全量审查:

  1. 已接入路径(10 个生产启动点 + 2 个测试文件):
    • node_probe.py 新增 node_typescript_flags();
    • 将 *node_typescript_flags() 接入 effect_runtime.py(TCP daemon 与 stdio runtime)、entrypoint.py(_native_scheduler_followup_argv)、quota/scheduler_ack.py、state_recovery_io.py、host_process_transport.py、delegation_preview_transport.py、remote_authority_gateway.py、extensions/turn_host.py 与 usage_ping.py。
  2. Blocking Finding 1(P1)— 主 POSIX CLI 启动器 scripts/loopx:74 绕过 Python 入口且漏传参数:
    • scripts/install-local.sh 安装后的 POSIX loopx CLI 直接软链至 scripts/loopx。其第 74 行在 Python 启动前拦截带收据绑定的 quota scheduler-ack-current 与 scheduler-fail-current 并直接 exec node --no-warnings --experimental-strip-types heartbeat_followup_cli.ts。使用模拟 uname -s=Linux / uname -m=x86_64 实跑复现,返回 argv_head=['--no-warnings', '--experimental-strip-types', '.../heartbeat_followup_cli.ts'],全部 3 个 V8 标志缺失;test_scheduler_native_launcher.py 也仍断言旧的 3 参数前缀。
    • 最小修复:在 scripts/loopx 第 74 行前判断 Linux + x86_64|amd64 并注入该 3 个标志,并更新 test_scheduler_native_launcher.py。
  3. Blocking Finding 2(P1)— 多处活动运行时、语义门禁与 E2E 启动点漏接:
    • loopx/zcode_goal_mode/bridge.py:277 与 cli.ts:155, 274(TS spawn(process.execPath, ...) 新建子进程不会继承这些 V8 标志)、loopx/semantics/production.py:295, 340(settlement_binding_witness.mts、quota_run_decision_witness.mts)以及 loopx/control_plane/testing/{canary_harness.py:305, authority_e2e_ladder.py:210,349,459, authority_e2e_fixtures.py:543} 均未加标志;同时建议顺手抽出共享 node_typescript_argv 辅助函数替代 10 处手写拼装。

对主干的风险 / Risks

在 macOS arm64 环境对 exact head 4783afaf6be3ffb52f7e07e5101efd279b3fa083 完成独立验证(wait_for_ci: false,未查/等待远端 CI):

  • tests/control_plane/test_effect_runtime_node_probe.py、test_source_cli_entrypoint.py 与 test_scheduler_native_launcher.py(-k "not launch_and_binds_or_slow"):89 passed, 13 skipped(13 个 skip 均为 macOS 无 PowerShell 所致);
  • 专项筛查(node_typescript or scheduler or strip_types or probe):56 passed, 13 skipped;test_usage_ping.py + test_cli_entrypoint.py:80 passed;test_control_plane_import_boundaries.py + probe:37 passed;
  • ruff check 与仓库配置 uv run --extra test python -m mypy 通过(Success: no issues found in 17 source files);loopx check --scan-path 全数 12 个改动文件 errors=0;Node v24.21.0 实测同时携带 --experimental-sqlite --use-env-proxy --experimental-strip-types --liftoff-only --no-wasm-tier-up --no-wasm-dynamic-tiering 启动输出 node-flags-ok。
  • 主干剩余风险:若在未补齐 scripts/loopx:74、ZCode、语义见证与 E2E 启动点前合入,Linux x86_64 已安装 CLI 的原生调度随访、zcode-goal 与 premerge 语义检查仍暴露在 V8 ThreadIsolation 崩溃风险下,且除 effect_runtime.py 外其余 8 个已改 Python 文件仍缺乏 linux/x86_64 模拟单测覆盖。

我的整体评价 / Verdict

node_typescript_flags() 机制本身边界清晰、非 Linux 平台零回归且 Worker.execArgv 语义处理得当;但因其核心前提“覆盖全部 --experimental-strip-types 启动路径”在安装态 POSIX 启动器 scripts/loopx:74 与 zcode_goal_mode / semantics/production.py / testing/ 上尚有明显断点并已在本地复现缺失,本次给出 REQUEST_CHANGES。

  • Visual Review:CLI/runtime Node process argv flag injection only; no rendered UI surface changed. Unverified Scope:Real Linux x86_64 QEMU/TCG crash reproduction is outside this macOS arm64 verification host; verified flag assembly, Node v24.21.0 CLI acceptance, Worker execArgv constraints, and scripts/loopx Linux x86_64 omission locally.
  • 后续建议:补齐 scripts/loopx:74、ZCode/semantics/testing 启动点并补充模拟 linux/x86_64 回归测试后,即可重新提交复核。

…de, semantics, and testing callers

Signed-off-by: LoopX Agent <[email protected]>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.2-sol · OpenAI (runtime_reported, xhigh)

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

APPROVE。 评审固定提交 f0c184c7013cacf48993cbdc18e99ad79347c984,merge base d28ec76f424c7ae6095c2c4e486eb33b9e4a5b8e。与核对时 main 55bae0ac55c8858a09f05fdebd3a1b7b5dcc131f 三方整合无冲突。 旧评审指出的 POSIX 原生 scheduler 和 ZCode 路径已闭环。 新 POSIX 入口 旧头独评

动机 / Motivation

让 Linux x86_64 上使用源码 TypeScript 的 LoopX 控制面、默认 CLI 和 ZCode 入口应用 V8 Wasm baseline 参数,同时保持原 scheduler 回执和其他平台的启动行为。 基线使用 Node 默认 Wasm tiering。上一提交的 Python launcher 已接入 workaround,但 POSIX 安装器指向的 scripts/loopx 与 ZCode 仍可走独立的裸 argv。 新头补上 POSIX scheduler、ZCode 的 Python 和两个 TS 子进程、Dashboard Node 版本探针及同域验证工具。三个参数只在 Linux x86_64 适用。

从原 POSIX 安装目标启动真实 Node 对比上一提交、精确新头和整合树的 argv。另在同一 Linux 环境用 receipt fixtures 验证 scheduler 回执,核对 ZCode 状态读回和平台反例。 容器未重现作者环境的 V8 崩溃。裸机 Linux PKU、实际安装发版、ZCode App 的外部接入和 Windows 原生执行未实测。本评审针对交付代码,不读取托管 CI。 现有交付规则

改动思路 / Approach

Linux x86_64 或 amd64 自动应用三个启动参数。非目标 OS 或架构使用原参数,CLI 参数、权限和回执语义沿用现有合同。 Node 进程参数归启动边界,现有 scheduler、Goal 校验与回执继续由原 owner 处理。Bash 快速路径保持直接启动 Node,Python 和 TS 分别复用各自运行时 helper。 Bash 在 Python 前启动,调用 Python 仅用于计算 flags 会给快速路径增加新进程。现有 POSIX 与 TS 平台矩阵覆盖各自的选择规则。

具体改动 / Changes

完整 diff 共 23 个文件,新增 291 行、删除 17 行。两笔 DCO 提交。原修补覆盖 effect runtime、预览、远端探针、恢复和 Host。复更补 POSIX 快速路径、ZCode 独立子进程、Dashboard 版本探针与验证工具。

  • 默认 POSIX scheduler。实际 launcher 在适用的 Linux 架构传入缓解参数,并保留 receipt-bound 请求与拒绝。

  • 已覆盖的 Node 入口。effect runtime 和 ZCode 启动补齐适用平台的参数。

  • 非目标平台兼容。平台之外不应用参数。

  • node_typescript_flags。Python 选择 Linux x86_64 启动参数。 精确代码

  • _start_stdio_runtime。将三个参数附加到 stdio runtime 并保留原指纹。 精确代码

  • native scheduler shell fast path。安装指定的 POSIX 快速入口直接传参。 精确代码

  • zcode_goal_operation。将平台参数带进 ZCode 绑定与读回入口。 精确代码

  • dispatch。在 detached 子进程和 Host guard 中显式传入参数。 精确代码

对主干的风险 / Risks

新头和 main 整合树在 Linux amd64 各 8 项定向检查通过,覆盖 POSIX launcher 与 ZCode 状态入口。真实回执 CLI 测试 11 passed, 11 skipped。通过 1 项带本地替身的真实 ZCode bind、start、stop 回归。macOS 定向 Python 108 passed, 13 skipped。 Dashboard 启动与平台参数 TS 在 macOS 和 Linux amd64 各 11 项通过。

完整 diff、git diff --check、目标 main 三方整合、两笔 DCO 和全部改动 Python 文件 Ruff 检查通过。 本地标准 premerge 的所选 18 项检查通过。

上一提交与其整合树已在同一真实 Node 调用复证缺少旗标。目标候选和整合树补齐旗标,仍返回同一结构化拒绝。 上一提交与原基线的 File/SQLite 规划任务在本地容器各通过四项。原崩溃的缓解效果由作者在 Debian 环境报告,本地容器验证了启动参数和行为。

我的整体评价 / Verdict

本次代码评审通过。独立回读覆盖了上一版漏掉的 POSIX 快速入口及 ZCode 状态路径,新参数携带原请求完整传给 Node。发布验收仍需在触发原 V8 崩溃的环境复证,并核对实际安装升级。

English verdict: APPROVE at f0c184c. The POSIX scheduler launcher and ZCode paths now apply the Linux x86_64 workaround. Real Node launches and receipt behavior were verified on the candidate and the relevant paths on the integration tree. The original V8 crash was not independently reproduced.

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

Reviewer: model_agent · Gemini · Google DeepMind · self_reported

English verdict: APPROVE

动机 / Motivation

针对 9212@f0c184c7013cacf48993cbdc18e99ad79347c984(由 4783afaf6b 迭代至 f0c184c7013cacf48993cbdc18e99ad79347c984 的全量复核):运行在 Linux x86_64/amd64(特别是 QEMU/TCG 或开启 Linux PKU)上的操作者与自动化 Goal/Turn/ZCode 调度器,在执行安装态 loopx CLI、Effect runtime、调度随访、语义见证或测试套件时会受影响。

修改前(及 r1 提交 4783afa 阶段)安装态 POSIX CLI scripts/loopx 随访入口与 ZCode、semantics、testing 等通道在 Linux x86_64 下仍不带 V8 防崩溃标志;更新至 r2 提交 f0c184c 后,已实测全部主 CLI(scripts/loopx)、dashboard(scripts/dashboard-dev.sh)、Python 运行时、ZCode 与测试调度入口在 Linux x86_64/amd64 上统一追加 --liftoff-only --no-wasm-tier-up --no-wasm-dynamic-tiering,而 macOS/arm64 与 Linux arm64 保持空数组零改动。

全面解决了 r1 指出的两项阻断遗漏:node_probe.py、node_version.ts 与 POSIX shell 三方保持同一平台判定与参数顺序,非 Linux 平台行为与既有输出完全一致,且 Worker 继承行为保持完整。本 PR 不改变 Node 版本门槛、Windows PowerShell 启动器 scripts/loopx.ps1、Worker.execArgv(Node 实测拒绝显式传入这些进程级 V8 标志)、纯文档示例或一次性脚本。

改动思路 / Approach

本次更新由 4783afaf6b(12 文件 +138/-7)按 r1 评审最小修复扩展至 23 文件(+291/-17),在 Python、TypeScript 与零 Python 的 POSIX shell 启动层形成完整覆盖:

  • Python 层保持 node_probe.node_typescript_flags() 作为单一判定点,并将其补齐至 zcode_goal_mode/bridge.py、semantics/production.py 及 control_plane/testing/{canary_harness.py,authority_e2e_fixtures.py,authority_e2e_ladder.py};
  • TypeScript 层在 node_version.ts 导出 nodeTypescriptFlags() 供 zcode_goal_mode/cli.ts 的 guard.ts 与 --serve 子进程复用;
  • POSIX shell 入口 scripts/loopx 与 scripts/dashboard-dev.sh 采用兼顾 macOS Bash 3.2 set -u 空数组安全展开 ${node_ts_flags[@]+"${node_ts_flags[@]}"};并正确保留 effect_runtime_compile_cache.ts:86 不改(已在 Node 实测验证 Worker 拒绝显式传入这些进程级 V8 标志)。

node_probe.node_typescript_flags()、node_version.nodeTypescriptFlags() 与 scripts/loopx 的 POSIX 平台判断各司其职且口径完全一致,非 Linux 平台保持空数组零改动,并保留 effect_runtime_compile_cache.ts Worker 继承主进程配置而不在 execArgv 中传入非法进程级标志。已完整覆盖全部实时 Python、TypeScript 与 POSIX CLI/dashboard 启动入口,两个 r1 阻断问题全部闭环且零引入新状态,当前边界可直接合入。

具体改动 / Changes

本 PR 无独立 RFC/issue 书面规范(spec_basis: no_spec),按运行时稳定性问题背景与最小边界对照评审。对照上一轮评审 4783afaf6b -> f0c184c701,本次迭代(23 文件 +291/-17:生产/测试支撑 19 文件 +126/-13、测试 4 文件 +165/-4)全部精准闭环:

  1. 修复 r1 Blocking 1 — POSIX CLI 包装器 scripts/loopx & scripts/dashboard-dev.sh:scripts/loopx:74-82 检测 Linux* 且 x86_64|amd64 并注入 3 个 V8 标志,同时 test_scheduler_native_launcher.py:310-373 新增伪 uname 参数化测试覆盖 Linux x86_64、Linux amd64、Linux aarch64 与 Darwin arm64。
  2. 修复 r1 Blocking 2 — 全部剩余运行时 / 语义门禁 / 测试通道:在 node_version.ts(配套 dashboard_node_runtime.test.ts:261-275)、zcode_goal_mode/cli.ts:154-156,273-275、zcode_goal_mode/bridge.py:279、semantics/production.py:296,341 与 control_plane/testing/{canary_harness.py,authority_e2e_fixtures.py,authority_e2e_ladder.py} 全量补齐标志,并用 grep 验证 loopx/ 与 scripts/ 实时生产路径无遗漏。
  3. 保留既有核心与导入隔离:effect_runtime.py、entrypoint.py、scheduler_ack.py、state_recovery_io.py、host_process_transport.py、delegation_preview_transport.py、remote_authority_gateway.py、turn_host.py、usage_ping.py 均保持稳定;仅留一项非阻塞 P2 后续建议(如后续继续新增 Python Node 启动点,可在 node_probe.py 提取共用 node_typescript_argv 拼装函数减少重复展开)。

关键代码讲解

  • node_probe.node_typescript_flags:Python 侧唯一平台判定函数,仅在 sys.platform == 'linux' 且 platform.machine() 属于 {'x86_64', 'amd64'} 时返回 ('--liftoff-only', '--no-wasm-tier-up', '--no-wasm-dynamic-tiering'),其余宿主返回空元组。
  • node_version.nodeTypescriptFlags:r2 新增 TypeScript 单一判定函数,针对 platform === 'linux' && (arch === 'x64' || arch === 'amd64') 返回全新拷贝数组。
  • scripts/loopx POSIX 原生随访快路径:在零 Python 环境下用 uname -s/uname -m 判断并采用 ${node_ts_flags[@]+"${node_ts_flags[@]}"} 兼容 macOS Bash 3.2 set -u 空数组安全展开。
  • zcode_goal_mode/cli.ts dispatch/serve 子进程孵化点:为 guard.ts 与 --serve 子进程展开 ...nodeTypescriptFlags(),确保 ZCode 长程容器拉起继承完整防崩溃标志。

对主干的风险 / Risks

在独立只读 worktree /tmp/verify-pr-9212-r2 对 exact head f0c184c7013cacf48993cbdc18e99ad79347c984 完成独立验证(wait_for_ci: false,未等待远端 CI):

  • PASS — Shell 与 Git 卫生:bash -n scripts/loopx scripts/dashboard-dev.sh、git diff --check origin/main...HEAD 均零错误通过。
  • PASS — TypeScript 类型检查与单元测试:npm run typecheck:control-plane(0 errors)及 node --no-warnings --experimental-sqlite --experimental-strip-types --test 覆盖 dashboard_node_runtime.test.ts、zcode_*.test.ts、scheduler_heartbeat_followup_cli.test.ts、content_digest_single_owner.test.ts 共 102 passed, 0 failed, 0 skipped;nodeTypescriptFlags('linux','x64'|'amd64'|'arm64') 与 'darwin','arm64' 实测精确匹配。
  • PASS — Python 静态检查、架构边界与 Premerge Canary:ruff check 18 个改动 .py 文件全通过;uv run --extra test python -m mypy(pyproject.toml 配置 17 文件含 authority_e2e_fixtures.py、authority_e2e_ladder.py)0 errors;tests/architecture/test_control_plane_import_boundaries.py 31 passed;loopx check --scan-path 全量 23 个改动文件 errors=0(1 条既有 cli.ts:87 authorization header 关键词降级 warning);loopx canary premerge --from-git-diff --git-diff-base origin/main 返回 ok: true, gate.status: passed(direct_checks 6/6, catalog_canaries 10/10, risk_profile_smokes 8/8, failures=0, manual_holds=[])。
  • PASS(含并发超时归因复跑)— Python 测试套件:首次与 canary premerge 并行执行 6 个测试文件时(282.02s),test_dashboard_launcher_preserves_early_service_error_context 因 timeout=5 秒下同时执行依赖安装和解释器启动而超时 1 failed(其余 334 passed, 13 skipped, 5 deselected);随后在无并行资源争抢下独立复跑:tests/test_dashboard_command.py -k "not (packaged_chat or chat_service or packaged_web_bundle)" 38 passed, 5 deselected in 28.78s(该用例本身 2.22s 通过,单独 -k 运行 1 passed in 6.42s),其余 5 个测试文件 297 passed, 13 skipped in 271.07s(tests/test_scheduler_native_launcher.py:330 跳过 13 个需 Windows PowerShell 的 .ps1 用例),无争抢合计 335 passed, 0 failed, 13 skipped, 5 deselected。dashboard-dev.sh 在 macOS 上仅新增一条内建 uname -s 检查,并未引入该 5s 测试超时回归。
  • PASS — Linux x86_64 仿真探针与 Worker 约束核验:在 linux/x86_64 模拟下实测 production.probe_quota_run_decision_production、canary_harness.advance_fixture_authority、authority_e2e_fixtures.ts_readback 与伪 uname scripts/dashboard-dev.sh 均精确注入 3 个 V8 标志;同时确认 effect_runtime_compile_cache.ts 未被修改,且 Node v24.21.0 new Worker(..., { execArgv: [..., '--liftoff-only', '--no-wasm-tier-up', '--no-wasm-dynamic-tiering'] }) 实测报错退出(Initiated Worker with invalid execArgv flags),维持 Worker 继承主进程策略完全正确。
  • 对主干剩余风险:非 Linux / 非 x86_64 平台严格返回空元组/空数组,回归风险极低;唯一真实宿主差异是本机为 macOS arm64,真实 Linux x86_64 QEMU/TCG/PKU 硬件实测将由后续实验环境承接。

我的整体评价 / Verdict

本次迭代完整回应并闭环了上一轮的全部两项 P1 阻断项(long_horizon: improved,user_experience: preserved,code_volume: necessary,compatibility_assessment: not_applicable,change_proportionality: proportionate,default_off_isolation: isolated,semantic_alignment: not_applicable)。全量 23 个改动文件经本地 TypeScript / Python / POSIX shell / canary / 边界扫描独立复核均通过,无未解决阻断问题,同意合入(APPROVE)。

  • Visual Review:CLI/runtime Node process argv flag injection only; no rendered UI surface changed. Unverified Scope:Real Linux x86_64 QEMU/TCG crash reproduction is outside this macOS arm64 verification host; verified platform predicates, fake-uname POSIX shells (scripts/loopx & scripts/dashboard-dev.sh), TS/Python simulated Linux x86_64 call sites, and Node v24.21.0 flag acceptance locally.
  • 建议:按作者自研 PR 流程核对 --check-approval-closeout 与 Goal 绑定 --check-merge-readiness(保持 #9212 为 OPEN,不越权自合并)。

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant